home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text.html;
-
- import javax.swing.text.Element;
- import javax.swing.text.StyleConstants;
- import javax.swing.text.View;
- import javax.swing.text.ViewFactory;
- import javax.swing.text.html.HTML.Tag;
-
- class TableView$TableFactory implements ViewFactory {
- // $FF: synthetic field
- private final TableView this$0;
- // $FF: renamed from: f javax.swing.text.ViewFactory
- ViewFactory field_0;
-
- TableView$TableFactory(TableView var1, ViewFactory var2) {
- this.this$0 = var1;
- this.field_0 = var2;
- }
-
- public View create(Element var1) {
- Object var2 = var1.getAttributes().getAttribute(StyleConstants.NameAttribute);
- if (var2 instanceof HTML.Tag) {
- HTML.Tag var3 = (HTML.Tag)var2;
- if (var3 == Tag.TR) {
- return this.this$0.createTableRow(var1);
- }
-
- if (var3 == Tag.CAPTION) {
- return new ParagraphView(var1);
- }
- }
-
- return this.field_0.create(var1);
- }
- }
-